cmake_minimum_required(VERSION 3.23)
project(CppTest-algorithm)

set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF)

add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")

add_executable(string_decompression string_decompression.cpp)
add_executable(binary_tree binary_tree.cpp)
add_executable(list list.cpp)
add_executable(reverse_linked_list reverse_linked_list.cpp)
add_executable(shared-pointer shared-pointer.cpp)

